<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
	contentType="text/html;charset=utf-8" import="java.util.*"
	import="com.anne.fish.model.LabelValue"%>
<%
List<LabelValue> moneys = new ArrayList<LabelValue>();

LabelValue lv = new LabelValue();
lv.setLabel("全部");
lv.setValue("-1");
moneys.add(lv);

lv = new LabelValue();
lv.setLabel("100元以下");
lv.setValue("0_100");
moneys.add(lv);

lv = new LabelValue();
lv.setLabel("100_500元");
lv.setValue("100_500");
moneys.add(lv);

lv = new LabelValue();
lv.setLabel("500_1000元");
lv.setValue("500_1000");
moneys.add(lv);

lv = new LabelValue();
lv.setLabel("1000_5000元");
lv.setValue("1000_5000");
moneys.add(lv);

lv = new LabelValue();
lv.setLabel("5000_50000元");
lv.setValue("5000_50000");
moneys.add(lv);


lv = new LabelValue();
lv.setLabel("50000_5000000元");
lv.setValue("50000_5000000");
moneys.add(lv);
 

request.setAttribute("moneys",moneys);

 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<meta name="description" content="${area.name} ${cat.catName}" />
		<meta name="keywords" content="${area.name}, ${cat.catName}" />
		<link type="text/css" href="  <c:url value='/styles/list.css' />"
			rel="stylesheet" />
	</head>
	<body>
		<div id="topbar"></div>
		<div id="header">
			<a href="/" id="minlogo"> ${area.name}&nbsp; </a>
			<span id="crumbs"> <a href="/">${area.name} &nbsp;</a><a href=''>${fatherCat.catName} &nbsp;</a><a
				href=''>${area.name} ${cat.catName}</a>  &nbsp;</span>  
		</div>
 
		<div id="selection">
			<dl class="secitem">
				<dt>
					类型：
				</dt>
				<dd>
					<a
						href="infoes?is.catId=-1&is.prices=${is.prices}&is.sell= -1&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=${is.areaId}"
						<c:if test="${-1 eq is.catId}"> class='select' </c:if>>全部</a>
					<c:forEach items="${cats}" var="_cat">
						<a <c:if test="${is.catId eq _cat.id}"> class='select' </c:if>
							href="infoes?is.catId=${_cat.id}&is.prices=${is.prices}&is.sell=${is.sell}&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=${is.areaId}">
							${_cat.catName }</a>
					</c:forEach>
				</dd>
			</dl>

			<dl class="secitem">
				<dt>
					价格：
				</dt>
				<dd>

					<c:forEach items="${moneys}" var="mn">
						<a
							href="infoes?is.catId=${is.catId}&is.prices=${mn.value}&is.sell=${is.sell}&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=${is.areaId}"
							<c:if test="${mn.value eq is.prices}"> class='select' </c:if>>${mn.label}</a>
					</c:forEach>

				</dd>
			</dl>
			<dl class="secitem">
				<dt>
					供需：
				</dt>
				<dd>
					<a
						href="infoes?is.catId=${is.catId}&is.prices=${is.prices}&is.sell=-1&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=${is.areaId}"
						<c:if test="${-1 eq is.sell}"> class='select' </c:if>>全部</a>
					<a
						href="infoes?is.catId=${is.catId}&is.prices=${is.prices}&is.sell=1&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=${is.areaId}"
						<c:if test="${1 eq is.sell}"> class='select' </c:if>> 转让 </a>
					<a
						href="infoes?is.catId=${is.catId}&is.prices=${is.prices}&is.sell=0&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=${is.areaId}"
						<c:if test="${0 eq is.sell}"> class='select' </c:if>> 求购 </a>
				</dd>
			</dl>
			<dl class="secitem">
				<dt>
					图片：
				</dt>
				<dd>
					<a
						href="infoes?is.catId=${is.catId}&is.prices=${is.prices}&is.sell=${is.sell}&is.searchWord=${is.searchWord}&is.pic=-1&is.areaId=${is.areaId}"
						<c:if test="${-1 eq is.pic}"> class='select' </c:if>>全部</a>
					<a
						href="infoes?is.catId=${is.catId}&is.prices=${is.prices}&is.sell=${is.sell}&is.searchWord=${is.searchWord}&is.pic=1&is.areaId=${is.areaId}"
						<c:if test="${1 eq is.pic}"> class='select' </c:if>> 有图 </a>
					<a
						href="infoes?is.catId=${is.catId}&is.prices=${is.prices}&is.sell=${is.sell}&is.searchWord=${is.searchWord}&is.pic=0&is.areaId=${is.areaId}"
						<c:if test="${0 eq is.pic}"> class='select' </c:if>> 无图 </a>
				</dd>
			</dl>
			<dl class="secitem">
				<dt>
					省份：
				</dt>
				<dd>
					<a
						href="infoes?is.catId=${is.catId}&is.prices=${is.prices}&is.sell=-1&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=-1"
						<c:if test="${-1 eq is.areaId}"> class='select' </c:if>>全部</a>
					<c:forEach items="${areas}" var="_area">
						<a <c:if test="${is.areaId eq _area.id}"> class='select' </c:if>
							href="infoes?is.catId=${_cat.id}&is.prices=${is.prices}&is.sell=${is.sell}&is.searchWord=${is.searchWord}&is.pic=${is.pic}&is.areaId=${_area.id}">
							${_area.name }</a>
					</c:forEach>
				</dd>
			</dl>
			<div id="SearchForm">
				<form action="infoes">
					<input type="hidden" name="is.catId" value="${is.catId }" />
					<input type="hidden" name="is.prices" value="${is.prices }" />
					<input type="hidden" name="is.sell" value="${is.sell }" />
					<input type="hidden" name="is.pic" value="${ is.pic}" />
					<input type="hidden" name="is.areaId" value="${is.areaId }" />
					<span class="text"> <input type="text" name="is.searchWord"
							value="${is.searchWord }" class="keyword" value="" /> </span><span
						class="btn"> <input type="submit" id="searchbtn1"
							value="搜索" /> </span>

				</form>
			</div>
			<div id="selected" class="bar"></div>
			<i class="shadow"></i>
		</div>
		<div id="filter">
			<div class="tabs">
				<a href="editInfo" target="_blank" class="pubbtn">免费发布
					${area.name} ${cat.catName}&raquo;</a>
				<!--				<a class='select' href="/pet/"><span>全部</span> </a>-->
				<!--				<a href="/pet/0/"><span>个人交易</span> </a>-->
				<!--				<a href="/pet/1/"><span>商家买卖</span> </a>-->
			</div>
 
			<div class="filterbar">
				<h1>
					${area.name} ${cat.catName}
				</h1>
				<a href="zhiding" target="_blank"
					class="tip_ding"><span class="c_r">置顶</span>，让信息效果更好</a>
		 
				 <i class="clear"></i>
			</div>
		</div>
		<div id="main">
			<div id="infolist">
				<table class="tbimg" cellpadding="0" cellspacing="0">
					<col width="80" />
					<col width="100" />
					<col width="700" />
					<col width="120" />


					<tr>
						<td class="dev" colspan="4">
							${area.name} ${cat.catName}
						</td>
					</tr>

					<tr>
						<td colspan="4" class="google">
							<div id="top_google_ad"></div>
						</td>
					</tr>

					<c:forEach items="${infoes}" var="info">
						<tr>
							<td class="img">
								<c:if test="${info.picFlag}">
									<a href="<c:url value='info?id=${info.id}'/>" target="_blank">
										<img src="" /> </a>
								</c:if>
								<c:if test="${info.picFlag}">
								 &nbsp;
								</c:if>
							</td>
							<td class="tc">
								<b class='pri'>${info.money }</b> 元
							</td>
							<td class="t">
								<a href="<c:url value='info?id=${info.id}'/>" target="_blank"
									class="t">${info.title } </a> &nbsp;
								<span class='ico biz'> ${info.personalFlag} </span><span
									class='ico tu'></span>
							</td>
							<td class="pd">
								${info.createTimeStr }
							</td>
						</tr>
					</c:forEach>




					<tr>
						<td colspan="4" class="google">
							<div id="taobao"></div>
						</td>
					</tr>
					<tr>
						<td colspan="4" class="google">
							<div id="bottom_google_ad"></div>
						</td>
					</tr>
				</table>
				<table class="tbl" style="display: hidden;">
				</table>
				<div class="pager">
				</div>
				<div id="infocont">
					<a target="_blank" href="editInfo">马上发布一条 &raquo;</a>
				</div>
			</div>
			<div id="rightframe">
				<div id="ad19"></div>
			</div>
		</div>
		<div id="links">

			<dl id="relate">
				<dt>
					相关信息：
				</dt>
				<dd>
					<ul>
						<li>
							<a href="">北京宠物猪</a>
						</li>

					</ul>
				</dd>
			</dl>
			<i class="line"></i>
			<div class="links">
					说明
			</div>

			<i class="line"></i>
			<ul class="links">
				<li>
					<a href='http://www.58.com/pet/'>花鸟鱼虫</a>
				</li>
			</ul>


			<i class='line'></i>
			<div class='links'>
				<strong>友情链接</strong>:
			</div>
		</div>
		<div id="footer">
			&copy;
			<a id="askicon" target="_blank" href="http://about.58.com/v5/">帮助中心</a>
		</div>
		<script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
			
<c:if test="${not empty infoes}">
		<script type="text/javascript"
			src="<c:url value='/scripts/jquery.pager.js'/>"></script> 
		<script>
$(function(){
	$('table.tbl').pagination({
		pager : "div.pager" ,
		currentPage : ${is.pageCurrentPage} ,
		totalPage : ${is.pageTotalPage} ,
		recordCount : ${is.pageTotalRow }
	});
	
	 
});
</script>
</c:if>
		<div style="display: none">

		</div>
		<%@ include file="/jsp/front/footer.jsp"%>
	</body>
</html>
